<template>
  <div class="container">
    <div class="app-container">
      <template>
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <!-- <el-tab-pane label="用户管理" name="first"><el-tree :data="list" show-checkbox node-key="id"
              :default-expanded-keys="[2, 3]" :default-checked-keys="[5]" :props="defaultProps">
            </el-tree></el-tab-pane> -->
          <el-tab-pane label="组织架构" name="first">
            <organization></organization>
          </el-tab-pane>

          <el-tab-pane label="角色设置" name="second">
            <role-setting></role-setting>
          </el-tab-pane>
          <!-- <el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane> -->
          <!-- <el-tab-pane label="定时任务补偿" name="fourth">定时任务补偿</el-tab-pane> -->
        </el-tabs>
      </template>
    </div>
  </div>
</template>
<script>
import organization from './components/user/organization.vue';
import roleSetting from './components/user/roleSetting.vue';
export default {
  name: 'userSetting',
  components: {
    organization,
    roleSetting
  },
  data() {
    return {
      activeName: 'second',
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    }
  }
}
</script>
<style lang="scss" scoped>
.app-container {
  padding: 20px;

  .left {
    width: 280px;
    padding: 20px;
    border-right: 1px solid #eaeef4;
    background-color: blue;
  }
}
</style>
